<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .container {
            position: relative;
            height: 300px;
            width: 300px;
            background-color: #525853;
        }
        .container::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            background: #fc2f70;
            height: 2px;
            transform: translateY(-1px);
            width: 100%;
            z-index: 10;
        }
        .card-item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 50%;
            text-align: center;
            line-height: 300px;
            font-size: 100px;
            overflow: hidden;
        }
        .card1 {
            background-color: aqua;
        }
        .card2 {
            top: 50%;
            background-color: aqua;
            line-height: 0;
            backface-visibility: hidden;
            transform-origin: center top;
        }
        .card3 {
            top: 50%;
            background-color: #3784d7;
            backface-visibility: hidden;
            transform-origin: center bottom;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="card1 card-item">1</div>
        <div class="card2 card-item">1</div>
        <div class="card3 card-item">2</div>
    </div>
</body>
</html>